import requests

get_url = 'http://httpbin.org/get'
post_url = 'http://httpbin.org/post'

"""
http://exam.python-spider.com/spider/get?page=1
http://exam.python-spider.com/spider/post
"""

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36'
}

res = requests.get(get_url,headers=headers)
# print(res.text)
# print(res.status_code)
# print(res.headers)